import 'package:flutter/material.dart';

class ChatMsgAlignWidget extends StatelessWidget {
  const ChatMsgAlignWidget({
    super.key,
    required this.children,
    this.isSend = true,
  });

  final List<Widget> children;
  final bool isSend;

  @override
  Widget build(BuildContext context) {
    return Row(
      mainAxisAlignment:
          isSend ? MainAxisAlignment.end : MainAxisAlignment.start,
      crossAxisAlignment: CrossAxisAlignment.end,
      children: children,
    );
  }
}
